package cn.lili.modules.system.entity.dos;

import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * 供应链设置
 *
 * @author zhangxiaojun
 * @since 2023/10/06
 */
@Data
@TableName("li_supply_chain")
@ApiModel(value = "供应链")
@EqualsAndHashCode(callSuper = true)
public class SupplyChain extends BaseStandardEntity {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "供应链名称必填")
    @ApiModelProperty(value = "供应链名称")
    private String name;

    @NotEmpty(message = "供应链简称必填")
    @ApiModelProperty(value = "供应链简称")
    private String shortName;

    @ApiModelProperty(value = "测试环境api key")
    private String testApiKey;

    @ApiModelProperty(value = "测试环境api secrect")
    private String testApiSecrect;

    @ApiModelProperty(value = "测试环境api host")
    private String testApiHost;

    @ApiModelProperty(value = "生产环境api key")
    private String proApiKey;

    @ApiModelProperty(value = "生产环境api secrect")
    private String proApiSecrect;

    @ApiModelProperty(value = "生产环境api host")
    private String proApiHost;

    @ApiModelProperty(value = "状态 1：可用，0：禁用")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}